<template>
    <div class="nav_bar">
      <p @click="$router.back()"> <span v-show="mybtn"><</span> </p>
      <p>
        <slot name="default"></slot>
      </p>
      <p><slot name="my"></slot></p>
    </div>
</template>

<script>
export default {
   props:{
    mybtn:{
      type:Boolean,
      default:true
    }
   },
    data() {
        return {
            
        };
    },

    mounted() {
        
    },

    methods: {
        
    },
};
</script>

<style lang="scss" scoped>
.nav_bar{
    position: fixed;
    top:0;
    display: flex;
    width: 100%;
    height: 8vh;
    font-size: 18px;
    background: #fff;
    line-height: 8vh;
    justify-content: space-between;
}
</style>